package demo;

public class Dog extends Animal {
    public Dog(String name, int age) {
        super(name, age);
    }

    public void test(){
        System.out.println("hello world!");
    }

    public static void main(String[] args) {
        Dog dog = new Dog("dog", 18);
        dog.eat();
        dog.test();
    }
}
